<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Caixa-1.0.2: Código-Fonte de src/imprimir.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Gerado por Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="main.html"><span>Página&nbsp;Principal</span></a></li>
      <li><a href="annotated.html"><span>Estruturas&nbsp;de&nbsp;Dados</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;Arquivos</span></a></li>
      <li><a href="globals.html"><span>Globais</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>src/imprimir.h</h1>  </div>
</div>
<div class="contents">
<a href="imprimir_8h.html">Vá para a documentação deste arquivo.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> *            imprimir.h</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *  Qua julho 13 07:56:42 2011</span>
<a name="l00005"></a>00005 <span class="comment"> *  Copyright  2011  Alcione Ferreira</span>
<a name="l00006"></a>00006 <span class="comment"> *  &lt;user@host&gt;</span>
<a name="l00007"></a>00007 <span class="comment"> ****************************************************************************/</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;<a class="code" href="bibliotecas_8h.html">bibliotecas.h</a>&gt;</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef __IMPRESSAO_H__</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define __IMPRESSAO_H__ 1</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;memory&gt;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;pangomm.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;gtkmm.h&gt;</span>
<a name="l00018"></a>00018 
<a name="l00022"></a><a class="code" href="classPrintFormOperation.html">00022</a> <span class="keyword">class </span><a class="code" href="classPrintFormOperation.html">PrintFormOperation</a> : <span class="keyword">public</span> Gtk::PrintOperation
<a name="l00023"></a>00023     {
<a name="l00024"></a>00024     <span class="keyword">public</span>:
<a name="l00026"></a>00026         <span class="keyword">static</span> Glib::RefPtr&lt;PrintFormOperation&gt; <a class="code" href="classPrintFormOperation.html#a85020e0c5d4fb001a496b0dd95a9e7b4">create</a>();
<a name="l00028"></a>00028         <span class="keyword">virtual</span> <a class="code" href="classPrintFormOperation.html#a8677c2b7e07c33e83deb11a200f62ab7">~PrintFormOperation</a>();
<a name="l00030"></a>00030         <span class="keywordtype">void</span> <a class="code" href="classPrintFormOperation.html#ac364bc3563e45d35f3a46310b0bc5269">set_corpo</a>(<span class="keywordtype">int</span>, <span class="keywordtype">string</span>, <span class="keywordtype">int</span>);
<a name="l00031"></a>00031 
<a name="l00032"></a>00032     <span class="keyword">protected</span>:
<a name="l00034"></a>00034         <a class="code" href="classPrintFormOperation.html#a4b1439533b55961c6c3114c63ed33eb4">PrintFormOperation</a>();
<a name="l00035"></a>00035 
<a name="l00037"></a>00037         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPrintFormOperation.html#af738576754fb8adb43c66131ba2dc616">on_begin_print</a>(<span class="keyword">const</span> Glib::RefPtr&lt;Gtk::PrintContext&gt;&amp; context);
<a name="l00039"></a>00039         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPrintFormOperation.html#a2241eb16314623ab3ab1f10b6d41c2dd">on_draw_page</a>(<span class="keyword">const</span> Glib::RefPtr&lt;Gtk::PrintContext&gt;&amp; context, <span class="keywordtype">int</span> page_nr);
<a name="l00040"></a>00040 
<a name="l00041"></a><a class="code" href="classPrintFormOperation.html#aceccab7b6f31b1b476e57b75f5690248">00041</a>         Glib::ustring <a class="code" href="classPrintFormOperation.html#aceccab7b6f31b1b476e57b75f5690248">m_cabecalho</a>;
<a name="l00042"></a><a class="code" href="classPrintFormOperation.html#a3db866f04b824f0e4a23921369ecd75a">00042</a>         Glib::ustring <a class="code" href="classPrintFormOperation.html#a3db866f04b824f0e4a23921369ecd75a">m_corpo</a>;
<a name="l00043"></a><a class="code" href="classPrintFormOperation.html#a92744cdaa012ce0060f49f0b89110a4f">00043</a>         Glib::ustring <a class="code" href="classPrintFormOperation.html#a92744cdaa012ce0060f49f0b89110a4f">m_rodape</a>;
<a name="l00044"></a><a class="code" href="classPrintFormOperation.html#a2b7d8b2df55fdecfde64550d28017558">00044</a>         Glib::RefPtr&lt;Pango::Layout&gt; <a class="code" href="classPrintFormOperation.html#a2b7d8b2df55fdecfde64550d28017558">Formulario</a>;
<a name="l00046"></a><a class="code" href="classPrintFormOperation.html#abdbd37ed269c54708f240a675afe7336">00046</a>         std::vector&lt;int&gt; <a class="code" href="classPrintFormOperation.html#abdbd37ed269c54708f240a675afe7336">QuebraPagina</a>; 
<a name="l00048"></a>00048     <span class="keyword">private</span>:
<a name="l00049"></a><a class="code" href="classPrintFormOperation.html#a410cc0dc9b4deb57f8974852adbe2f52">00049</a>         <span class="keywordtype">double</span> <a class="code" href="classPrintFormOperation.html#a410cc0dc9b4deb57f8974852adbe2f52">largura</a>;
<a name="l00050"></a><a class="code" href="classPrintFormOperation.html#aca1cdcaa0ba841fbdb3ea9059c51c008">00050</a>         <span class="keywordtype">double</span> <a class="code" href="classPrintFormOperation.html#aca1cdcaa0ba841fbdb3ea9059c51c008">altura</a>;
<a name="l00052"></a>00052         <span class="keywordtype">void</span> <a class="code" href="classPrintFormOperation.html#ab690e926a88fe66c5e3032123d306c32">set_cabecalho</a>();
<a name="l00054"></a>00054         <span class="keywordtype">void</span> <a class="code" href="classPrintFormOperation.html#ae595c6b385dc225e237d439b5da5141f">set_rodape</a>();
<a name="l00055"></a>00055     };
<a name="l00059"></a><a class="code" href="classIMPRIMIR.html">00059</a> <span class="keyword">class </span><a class="code" href="classIMPRIMIR.html">IMPRIMIR</a>: <span class="keyword">public</span> Gtk::Window
<a name="l00060"></a>00060     {
<a name="l00061"></a>00061     <span class="keyword">public</span>:
<a name="l00063"></a>00063         <a class="code" href="classIMPRIMIR.html#ae69f4b5315d5356e411475b1843a4ee6">IMPRIMIR</a>(<span class="keywordtype">int</span>,<span class="keywordtype">string</span>,<span class="keywordtype">int</span>);
<a name="l00065"></a>00065         <span class="keyword">virtual</span> <a class="code" href="classIMPRIMIR.html#a1b1cfd5d9361a73a879a9b705533a768">~IMPRIMIR</a>();
<a name="l00067"></a>00067         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#ac3446784c943bbff8e65a283b3f6548a">corpo</a>(<span class="keyword">const</span> Glib::ustring&amp; );
<a name="l00068"></a>00068 
<a name="l00069"></a>00069     <span class="keyword">protected</span>:
<a name="l00070"></a><a class="code" href="classIMPRIMIR.html#a10e231b2ce1f753706d256aeb44c25b1">00070</a>         Glib::ustring <a class="code" href="classIMPRIMIR.html#a10e231b2ce1f753706d256aeb44c25b1">cabecalho_text</a>;
<a name="l00071"></a><a class="code" href="classIMPRIMIR.html#acb57eb26e29930e38317035e4851d3e8">00071</a>         Glib::ustring <a class="code" href="classIMPRIMIR.html#acb57eb26e29930e38317035e4851d3e8">corpo_text</a>;
<a name="l00072"></a><a class="code" href="classIMPRIMIR.html#afd60be95b14666dca7ce0a1c12464cb8">00072</a>         Glib::ustring <a class="code" href="classIMPRIMIR.html#afd60be95b14666dca7ce0a1c12464cb8">rodape_text</a>;
<a name="l00074"></a>00074         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#a02c0954338e840dd388ac437b2e874c4">print_or_preview</a>(Gtk::PrintOperationAction print_action);
<a name="l00076"></a>00076         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#a06f3d2bdd802ab01003d8eaeaaa1c9fa">Imprimir_Preview</a>();
<a name="l00082"></a>00082         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#aaae4ca7b93cf23a2643c4e9e6c936b7a">on_printoperation_status_changed</a>(<span class="keyword">const</span> Glib::RefPtr&lt;PrintFormOperation&gt;&amp; operation);
<a name="l00088"></a>00088         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#ae89b8bf5f628a046eff4b3be5e3fa1fb">on_printoperation_done</a>(Gtk::PrintOperationResult result, <span class="keyword">const</span> Glib::RefPtr&lt;PrintFormOperation&gt;&amp; operation);
<a name="l00089"></a>00089 
<a name="l00093"></a>00093         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#abb803ffe75a47c8507591f9bbef69ca0">on_menu_file_new</a>();
<a name="l00097"></a>00097         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#af456260ab148611694c84d0333504930">Imprimir_Config</a>();
<a name="l00099"></a>00099         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#a7f01d704be0a85cada7d5bd5fbdceaa9">Imprimir</a>();
<a name="l00101"></a>00101         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#a7355c118d9b3f7132cf9bb1c20a14f9d">fechar</a>();
<a name="l00103"></a>00103         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#acd7683bf3ff7ecab1f2a59792a292b2e">tags_create</a>();
<a name="l00105"></a>00105         <span class="keywordtype">void</span> <a class="code" href="classIMPRIMIR.html#ac32c7b1601ffcc8f75b1ce380ee3e673">gerar_texto</a>();
<a name="l00106"></a>00106 
<a name="l00107"></a><a class="code" href="classIMPRIMIR.html#a622a73e75e19dcd561ae3f694ed3425e">00107</a>         Glib::RefPtr&lt;Gtk::PageSetup&gt; <a class="code" href="classIMPRIMIR.html#a622a73e75e19dcd561ae3f694ed3425e">SetupPagina</a>; 
<a name="l00108"></a><a class="code" href="classIMPRIMIR.html#a31101a4ff6b033837fd9737139f44fa6">00108</a>         Glib::RefPtr&lt;Gtk::PrintSettings&gt; <a class="code" href="classIMPRIMIR.html#a31101a4ff6b033837fd9737139f44fa6">ConfImpress</a>;
<a name="l00110"></a><a class="code" href="classIMPRIMIR.html#a015b747231aa529b3eb7df981bcfcdf1">00110</a>         Glib::RefPtr&lt;Pango::Layout&gt; <a class="code" href="classIMPRIMIR.html#a015b747231aa529b3eb7df981bcfcdf1">Formulario</a>;
<a name="l00111"></a><a class="code" href="classIMPRIMIR.html#acc49134212110107dac1a681176c8418">00111</a>         std::vector&lt;int&gt; <a class="code" href="classIMPRIMIR.html#acc49134212110107dac1a681176c8418">QuebraPagina</a>; 
<a name="l00113"></a><a class="code" href="classIMPRIMIR.html#a2e15ec147911ac8aa4282ef2470660d0">00113</a>         Gtk::VBox <a class="code" href="classIMPRIMIR.html#a2e15ec147911ac8aa4282ef2470660d0">Box_Principal</a>, <a class="code" href="classIMPRIMIR.html#ac9032aa0394b88ea0a7bee150caeec33">Box_Conteudo</a>, <a class="code" href="classIMPRIMIR.html#ac3c5a6fccf3272d90e74e3ffecb1a9b6">Box_Menu</a>;
<a name="l00114"></a>00114 
<a name="l00115"></a><a class="code" href="classIMPRIMIR.html#a0aec7303d31db3b8872e6f43f65d0456">00115</a>         Gtk::Toolbar <a class="code" href="classIMPRIMIR.html#a0aec7303d31db3b8872e6f43f65d0456">tb_imprimir</a>;
<a name="l00116"></a><a class="code" href="classIMPRIMIR.html#ae5b425b1b82149742da73eacc2158631">00116</a>         Gtk::ToolButton <a class="code" href="classIMPRIMIR.html#a87946493bf5c99f645cfddb66b43433a">b_imprimir</a>, <a class="code" href="classIMPRIMIR.html#a6c83d5a223121265b60dbe824692fb4f">b_preview</a>, <a class="code" href="classIMPRIMIR.html#ae5b425b1b82149742da73eacc2158631">b_setup</a>, <a class="code" href="classIMPRIMIR.html#a8d2de57547ed76cdfbcfeea01998eaee">b_fechar</a>;
<a name="l00117"></a><a class="code" href="classIMPRIMIR.html#a8941c7b89121047bb19691970d2b6007">00117</a>         Gtk::SeparatorToolItem <a class="code" href="classIMPRIMIR.html#a8941c7b89121047bb19691970d2b6007">b_separador</a>;
<a name="l00118"></a>00118 
<a name="l00119"></a><a class="code" href="classIMPRIMIR.html#afd257da6911d79d6b88a5877a8a8fb7e">00119</a>         Gtk::ScrolledWindow <a class="code" href="classIMPRIMIR.html#afd257da6911d79d6b88a5877a8a8fb7e">SVisualiza</a>;
<a name="l00120"></a><a class="code" href="classIMPRIMIR.html#ab6de05f92f77d5b07a29c452fd2d6131">00120</a>         Gtk::TextView <a class="code" href="classIMPRIMIR.html#ab6de05f92f77d5b07a29c452fd2d6131">TVisualiza</a>;
<a name="l00121"></a><a class="code" href="classIMPRIMIR.html#a39eeb78540b154ed9eab33bc5f4b2e41">00121</a>         Glib::RefPtr&lt;Gtk::TextBuffer&gt; <a class="code" href="classIMPRIMIR.html#a39eeb78540b154ed9eab33bc5f4b2e41">PVisualiza</a>;
<a name="l00122"></a><a class="code" href="classIMPRIMIR.html#ade14b1119c70036238226fda42842622">00122</a>         Gtk::TextIter <a class="code" href="classIMPRIMIR.html#ade14b1119c70036238226fda42842622">iter</a>, <a class="code" href="classIMPRIMIR.html#aba0666759be4d7b3b40d2d8fecb2b91c">inicio</a>, <span class="keyword">final</span>;
<a name="l00123"></a><a class="code" href="classIMPRIMIR.html#aa640beb515d7aef708f5504e91712457">00123</a>         Glib::RefPtr&lt;Gtk::TextTag&gt; <a class="code" href="classIMPRIMIR.html#aa640beb515d7aef708f5504e91712457">tags</a>;
<a name="l00124"></a>00124             
<a name="l00125"></a><a class="code" href="classIMPRIMIR.html#ac944127deb250561cd4b2a58ef3fb3e4">00125</a>         Glib::RefPtr&lt;Gdk::Pixbuf&gt; <a class="code" href="classIMPRIMIR.html#ac944127deb250561cd4b2a58ef3fb3e4">pixbuf</a>;
<a name="l00126"></a>00126 
<a name="l00127"></a>00127     <span class="keyword">private</span>:
<a name="l00128"></a><a class="code" href="classIMPRIMIR.html#a2a94e965a20ae63352aa2a33407b7135">00128</a>         BANCO *<a class="code" href="classIMPRIMIR.html#a2a94e965a20ae63352aa2a33407b7135">conexao</a>;
<a name="l00129"></a><a class="code" href="classIMPRIMIR.html#a464f6534bb3a2491525bf05f1df78728">00129</a>         <span class="keywordtype">int</span> <a class="code" href="classIMPRIMIR.html#a464f6534bb3a2491525bf05f1df78728">tipo</a>;
<a name="l00130"></a><a class="code" href="classIMPRIMIR.html#ad16d9fcf0627414eed28b81fa835d8e1">00130</a>         <span class="keywordtype">int</span> <a class="code" href="classIMPRIMIR.html#ad16d9fcf0627414eed28b81fa835d8e1">recibo</a>;
<a name="l00131"></a><a class="code" href="classIMPRIMIR.html#ae33dc329b01826296aaa1fc6394a5e46">00131</a>         <span class="keywordtype">string</span> <a class="code" href="classIMPRIMIR.html#ae33dc329b01826296aaa1fc6394a5e46">data</a>;
<a name="l00132"></a>00132     };
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 <span class="preprocessor">#endif </span><span class="comment">/*__IMPRESSAO_H__*/</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Gerado em Quarta, 9 de Maio de 2012 21:34:45 para Caixa-1.0.2 por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
